<?php

namespace app\api\request\index;

use think\Validate;

class HomeRequest extends Validate
{
    protected $rule = [
        'id' => 'require',
        'per_unit'=>'require',
        'coin_price_usd'=>'require',
        'net_hashrate'=>'require',
    ];


    protected $scene = [
        'noticeInfo' => ['id'],
        'coinInfo' => ['id'],
        'calculate' => ['per_unit','coin_price_usd','net_hashrate'],
    ];
}